

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>试卷管理</title>
    <#include "/common/link.ftl">

</head>
<body class="hold-transition skin-black sidebar-mini">
<div class="wrapper">
    <#include "/common/navbar.ftl">
    <#assign currentMenu="exam"/>
    <#include "/common/menu.ftl">
    <div class="content-wrapper">
        <section class="content-header">
            <h1>试卷预览</h1>
        </section>
        <section class="content">
            <div class="box" style="padding: 10px">
                <div class="row">

                    <div class="col-md-offset-4 col-md-8">
                        <h1 class="col-md-offset-1">${exam.title}</h1>
                    </div>
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-body">
                                <div class="col-md-4">时间：${exam.examMinute}分钟 </div>
                                <div class="col-md-4">总分：${exam.totalScore}分</div>
                            </div>
                        </div>
                    </div>
                </div>
                <#assign singleScore=0 />
                <#list list as i>
                    <#if i.type==1>
                        <#assign singleScore+=i.score/>
                    </#if>
                </#list>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3>一、单选题（共${(singleScore?c)!}分）</h3>
                    </div>
                    <#list list as i>
                    <div class="panel-body">
                        <#if i.type=1>
                        <p>${i.sequence}.${i.question}<span>（${i.score}分）</span></p>
                        <#list i.choices as c>
                            <p>${c}</p>
                        </#list>
                        <div style="color:red">正确答案：${i.right}</div>
                        </#if>
                    </div>
                    </#list>


                    <#assign multipleScore=0 />
                    <#list list as i>
                        <#if i.type==2>
                            <#assign multipleScore+=i.score/>
                        </#if>
                    </#list>
                    <div class="panel-heading">
                        <h3>二、多选题（共${(multipleScore?c)!}分）</h3>
                    </div>
                    <#list list as i>
                        <div class="panel-body">
                            <#if i.type=2>
                                <p>${i.sequence}.${i.question}<span>（${i.score}分）</span></p>
                                <#list i.choices as c>
                                    <p>${c}</p>
                                    <#assign multipleScore+=i.score/>
                                </#list>
                                <div style="color:red">正确答案：${(i.right)}</div>
                            </#if>
                        </div>
                    </#list>


                    <#assign judgeScore=0 />
                    <#list list as i>
                        <#if i.type==3>
                            <#assign judgeScore+=i.score/>
                        </#if>
                    </#list>
                    <div class="panel-heading">
                        <h3>三、判断题（共${(judgeScore?c)!}分）</h3>
                    </div>

                    <#list list as i>
                        <div class="panel-body">
                            <#if i.type=3>
                                <p>${i.sequence}.${i.question}<span>（${i.score}分）</span></p>
                                <#list i.choices as c>
                                    <p>${c}</p>
                                    <#assign judgeScore+=i.score/>
                                </#list>
                                <div style="color:red">正确答案：${i.judgeAnswer?string("正确","错误")}</div>
                            </#if>
                        </div>
                    </#list>

                </div>
            </div>
        </section>
    </div>
    <#include "/common/footer.ftl">
</div>
</body>
</html>
